package com.study.springsecurity.dao;

import com.study.springsecurity.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

/**
 * @Author: zzy
 * @Date: 2024/10/12 15:17
 * @Title:
 * @Version:
 * @Package: com.study.springsecurity.dao
 */
@Repository
public interface UserDao extends JpaRepository<User,Integer> {
    User findByMobileAndPassword(String mobile,String pwd);
    User findByMobile(String mobile);
}
